#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "figure.h"

namespace CxQML {
    class Point;
    class LineSegment;



    class Triangle: public Figure
    {
    public:
        Triangle();
        Triangle(const Point& point1, const Point& point2, const Point& point3);
        virtual ~Triangle();

        operator QString();

         int necessaryPointsQuant() const;
        bool isClosed() const;

        bool isValid() const;

        LineSegment firstSide() const;
        LineSegment secondSide() const;
        LineSegment thirdSide() const;
        QString className() const;

    };

}

#endif // TRIANGLE_H
